/*
 * FileName：SysOrg.java 
 * <p>
 * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (1154808491@qq.com)</a>.
 * <p>
 * Licensed under the GNU General Public License, Version 3 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/gpl-3.0.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */
package com.smart.primary.sys.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.smart.primary.common.page.Page;
import lombok.Data;
import org.springframework.data.annotation.Transient;

import java.io.Serializable;
import java.util.Date;

/**
* 组织机构信息表 Entity层
*
* @author hermit
* @date 2018-02-23 11:02:18
*/
@Data
public class Org extends Page implements Serializable{

	/**
	* 有规则的编码：001001
	*/
	private String orgNo;

	/**
	* 机构名称
	*/
	private String orgName;

	/**
	* 父no，0为顶级
	*/
	private String parentNo;

	/**
	 * 机构排序
	 */
	private Integer orgOrder;

	/**
	* 机构状态：0禁用 1启用
	*/
	private Integer orgState;

	public String getOrgNo() {
		return orgNo;
	}

	public void setOrgNo(String orgNo) {
		this.orgNo = orgNo;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getParentNo() {
		return parentNo;
	}

	public void setParentNo(String parentNo) {
		this.parentNo = parentNo;
	}

	public Integer getOrgOrder() {
		return orgOrder;
	}

	public void setOrgOrder(Integer orgOrder) {
		this.orgOrder = orgOrder;
	}

	public Integer getOrgState() {
		return orgState;
	}

	public void setOrgState(Integer orgState) {
		this.orgState = orgState;
	}

	public Integer getIsLeaf() {
		return isLeaf;
	}

	public void setIsLeaf(Integer isLeaf) {
		this.isLeaf = isLeaf;
	}

	public Integer getIsSystem() {
		return isSystem;
	}

	public void setIsSystem(Integer isSystem) {
		this.isSystem = isSystem;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdateUserId() {
		return updateUserId;
	}

	public void setUpdateUserId(String updateUserId) {
		this.updateUserId = updateUserId;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getOrgStateName() {
		return orgStateName;
	}

	public void setOrgStateName(String orgStateName) {
		this.orgStateName = orgStateName;
	}

	public String getIsLeafName() {
		return isLeafName;
	}

	public void setIsLeafName(String isLeafName) {
		this.isLeafName = isLeafName;
	}

	/**
	* 是否是叶子节点：0否 1是
	*/
	private Integer isLeaf;

	/**
	 * 是否系统角色：0否 1是
	 */
	private Integer isSystem;

	/**
	* 备注
	*/
	private String remark;

	/**
	* 创建人
	*/
	private String createUserId;

	/**
	* 创建时间
	*/
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date createTime;

	/**
	* 修改人
	*/
	private String updateUserId;

	/**
	* 修改时间
	*/
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date updateTime;




	/**
	 * 机构状态：0禁用 1启用
	 */
	@Transient
	private String orgStateName;

	/**
	 * 是否是叶子节点：0否 1是
	 */
	@Transient
	private String isLeafName;

}
